MACRO(OUTPUT_LIBRARY TARGET_NAME)

ADD_LIBRARY(TARGET_STATIC    STATIC ${TARGET_NAME})
ADD_LIBRARY(${TARGET_NAME}   SHARED ${TARGET_NAME})

SET_TARGET_PROPERTIES(TARGET_STATIC PROPERTIES OUTPUT_NAME ${TARGET_NAME})
SET_TARGET_PROPERTIES(${TARGET_NAME}   PROPERTIES CLEAN_DIRECT_OUTPUT 1)
SET_TARGET_PROPERTIES(${TARGET_STATIC} PROPERTIES CLEAN_DIRECT_OUTPUT 1)

ENDMACRO(OUTPUT_LIBRARY TARGET_LIST)

